package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * wm新闻材料映射器
 *
 * @author DiXiaoNie
 * @date 2022/12/21
 * @since 2022/12/21 17:38
 */

public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {
    /**
     * 保存关系
     *
     * @param materialIds 材料标识
     * @param newsId      消息id
     * @param type        类型
     * @author DiXiaoNie
     * @date 2022/12/21
     */
    void saveRelations(@Param("materialIds") List<Integer> materialIds, @Param("newsId") Integer newsId, @Param("type")Short type);


}
